package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品优惠管理对象 youxuan_goods_preferential
 * 
 * @author ruoyi
 * @date 2021-01-03
 */
public class YouxuanGoodsPreferential extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 优惠 */
    @Excel(name = "优惠")
    private Long preferentialId;

    /** 商品 */
    @Excel(name = "商品")
    private Long goodsId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPreferentialId(Long preferentialId) 
    {
        this.preferentialId = preferentialId;
    }

    public Long getPreferentialId() 
    {
        return preferentialId;
    }
    public void setGoodsId(Long goodsId) 
    {
        this.goodsId = goodsId;
    }

    public Long getGoodsId() 
    {
        return goodsId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("preferentialId", getPreferentialId())
            .append("goodsId", getGoodsId())
            .toString();
    }
}
